/* 媒体库项样式 */
.library-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.library-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.library-poster {
    height: 180px;
    width: 100%;
    object-fit: cover;
    position: relative;
    background-color: #f1f5f9;
}

.library-info {
    padding: 1rem;
}

.library-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.library-stats {
    font-size: 0.875rem;
    color: #64748b;
}

/* 媒体条目样式 */
.media-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.media-poster {
    height: 200px;
    width: 100%;
    background-color: #f1f5f9;
    flex-shrink: 0;
}

.media-info {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.media-name {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
}

.media-type {
    font-size: 0.75rem;
    color: #94a3b8;
    background-color: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    align-self: flex-start;
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    opacity: 0.7;
}

/* 详情弹窗样式 */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.75rem;
    max-width: 4xl;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.line-clamp-6 {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-none {
    -webkit-line-clamp: unset;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .library-poster {
        height: 150px;
    }
    
    .media-poster {
        height: 180px;
    }
}

@media (max-width: 640px) {
    .library-poster {
        height: 120px;
    }
    
    .media-poster {
        height: 150px;
    }
}